<template>
  <div class="usercenter-box">
    <div class="common-usercenter-box">
      <h6 class="common-title">收件箱</h6>
      <!-- <a href="/message/send4">
        <el-button>发件箱</el-button>
      </a>
      <a href="/message/list4">
        <el-button type="primary">收件箱</el-button>
      </a>
      <el-button type="danger" class="add" @click="$refs.msg.show()"
        >短信发送</el-button
      > -->
      <!-- <el-button class="query" type="primary">查询</el-button>
      <select-filter name="查询条件" :options="options"></select-filter> -->
      <el-form class="message-form" inline>
        <el-form-item label="短信主题">
          <el-input
            placeholder="请输入需要查询的短信主题">
          </el-input>
        </el-form-item>
        <el-form-item>
          <el-select
            placeholder="查询全部">
            <el-option
              v-for="item in options.options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>

        <el-form-item>
          <el-button type="primary">确认查询</el-button>
        </el-form-item>
        <el-form-item>
          <el-button type="danger">全部已读</el-button>
        </el-form-item>
      </el-form>
      <section>
        <el-table :data="tableData">
          <el-table-column
            label="选择"
            type="selection"
            width="55"
          ></el-table-column>
          <el-table-column prop="num" label="发送人"></el-table-column>
          <el-table-column prop="name" label="短信标题"></el-table-column>
          <el-table-column prop="name" label="收到时间"></el-table-column>
          <el-table-column prop="name" label="状态"></el-table-column>
        </el-table>
      </section>
      <message-dialog ref="msg"></message-dialog>
    </div>
  </div>
</template>

<script>
import SelectFilter from '@/components/selectFilter'
import MessageDialog from '@/components/dialog/message'

export default {
  layout: 'webIn4',
  components: {
    SelectFilter,
    MessageDialog
  },
  data() {
    return {
      dialog: {
        visible: false
      },
      options: [
        {
          type: 'select',
          width: 140,
          options: [
            {
              label: '全部',
              value: '1'
            },
            {
              label: '已读已回复',
              value: '2'
            },
            {
              label: '已读未回复',
              value: '3'
            }
          ]
        }
      ],
      tableData: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
    }
  }
}
</script>

<style lang="scss" scoped>
h3 {
  .add {
    float: right;
    margin-right: 15px;
  }
}
section + section {
  margin-top: 15px;
}

// @import 'assets/style/layer.css';
@import 'assets/style/layui.css';
@import 'assets/style/style6/common.css';
// @import 'assets/style/style6/openlogin.css';
// @import 'assets/style/style6/style.css';
// @import 'assets/style/style6/font_1451715_0505c2bxv7b7.css';

.usercenter-box {
  .el-button {
    padding: 9px 15px;
  }
}
.message-form {
  margin: 20px 0;
}
</style>
